Phillies lose to Cardinals; Hamels upset