A Secret Service agent assigned to Barack Obama was breaching security while leading a double life, according to a memoir by the agent's former girlfriend.