Local agencies receive funds to help homeless