Mo Farah shrugged off recent doping allegations against his coach Alberto Salazar to win the men's 5000 metres at the Diamond League meeting in Lausanne.