McCutchen has 3 RBIs, Pirates beat Rockies 5-4