Home Office says force may have wrongly recruited ‘thousands’ of people who went on to commit misconduct