U.S. president nominates Hagel as defense secretary