Astros end skid with 5-3 win over Reds