Former United States footballer Robbie Rogers, who recently came out as gay and retired from the game, is to join MLS side Los Angeles Galaxy.