Sir Mo Farah smashed a British record as he secured a top three finish at the hottest ever London Marathon.