Hamilton and Ferrari struggle after Azerbaijan Grand Prix