Council branded 'inhumane' after installing metal bars on benches to stop homeless people sleeping on them