Mental health patients held in A&E for ‘up to three weeks’