Astros hit 5 homers, end skid with win over Rockies