Cole Hamels, Philadelphia Phillies agree to six-year, $144 million deal