Saudi Arabia has invested in Pakistani nuclear weapons projects, and believes it could obtain atomic bombs at will, a report says.