Bath sneak win against Leeds