Hamilton lost out on fourth place to Ferrari team-mate Charles Leclerc due to the five-second penalty