Boris Johnson did not believe in Brexit during the referendum campaign and backed Leave “because it would help his political career”, says David Cameron.