Funding to support business, leisure and community facilities in Cambridgeshire's market towns has been approved.