Hamlin caps marathon day of racing at Pocono with 4th win