US navy secretary John Phelan has left his role immediately amid reports of a falling out with defence secretary Pete Hegseth.