US Navy Secretary John Phelan is leaving his job, the Pentagon says, making him the latest senior Pentagon official to step down or be ousted.