Heterogeneous relaxation in supercooled liquids: A density functional theory analysis