Districts experiencing some of the worst homelessness pressures are set to lose millions in prevention funding under Government plans, analysis suggests.