The former top aide to Prime Minister Boris Johnson is accused of helping a public relations firm secure a government contract because he is friends with officials who run the company.