A man accused of raping a 15-year-old girl and sexually assaulting her friend near a Dorset beach has been found not guilty.