Charles Leclerc wins British Grand Prix under safety car