Hamilton rallies from tire eruption, finishes fourth