A hot Jupiter orbiting a 2-million-year-old solar-mass T Tauri star