Sir Keir Starmer has apologised for being "overly rude" to a Welsh MP after accusing her of "talking rubbish".