South Yorkshire awarded £3.5m to support people to stay