A long-awaited report has strongly criticised the FBI's handling of its investigation into alleged ties between Russia and the 2016 Trump campaign.