Resolvent estimates with mild trapping