A multiscale computational approach for contact problems