British tennis veteran Andy Murray has pulled out of the singles at Wimbledon but will compete with his brother Jamie in the doubles.