The mayor and council shall have the power and authority to restrain and punish vagrants, mendicants, beggars and prostitutes.