Two-time champion Andy Murray has pulled out of Wimbledon because of a hip injury.