Trump, Biden in competing town halls with president in uphill battle