A Leaky Pipe Dream? A Study of Gender Differences in Undergraduate Physics