Capitals beat struggling Avalanche 4-3 in overtime