US organic grocer Whole Foods Market has posted a 27% rise in second-quarter profit but failed to meet sales targets due in part to severe weather.