Sex assaults threaten military trust, Obama tells Naval graduates