Home secretary criticised for tweets vowing to restrict use of tents by homeless people, ‘many of them from abroad’